import { stringify } from 'qs';
import request from '../utils/request';

export async function addQualityUser(params) {
  return request('/qualityuser/add', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function editQualityUser(params) {
  return request('/qualityuser/update', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function deleteQualityUser(params) {
  return request(`/qualityuser/delete/${params}`, {
    method: 'DELETE',
  });
}

export async function findQualityUserByPage(params) {
  return request(`/qualityuser/findbypage?${stringify(params)}`, {
    method: 'GET',
  });
}

export async function findAllQualityUser() {
  return request('/qualityuser/findall', {
    method: 'GET',
  });
}

export async function batchRemove(params) {
  return request(`/qualityuser/batchdelete/${params}`, {
    method: 'DELETE',
  });
}






